package car.aistar.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * (Admin)实体类
 *
 * @author makejava
 * @since 2020-09-30 20:11:53
 */
public class Admin implements Serializable {
    private static final long serialVersionUID = -12661199932404773L;
    /**
     * 管理员id
     */
    private Long aid;
    /**
     * 管理员姓名
     */
    private String adName;
    /**
     * 管理员电话
     */
    private String adPhone;
    /**
     * 管理员账号
     */
    private String adAccount;
    /**
     * 管理员密码
     */
    private String adPassword;
    /**
     * 管理员入职时间
     */
    private Date adCreatedate;

    public Admin() {
    }

    public Admin(Long aid, String adName, String adPhone, String adAccount, String adPassword, Date adCreatedate) {
        this.aid = aid;
        this.adName = adName;
        this.adPhone = adPhone;
        this.adAccount = adAccount;
        this.adPassword = adPassword;
        this.adCreatedate = adCreatedate;
    }

    public Long getAid() {
        return aid;
    }

    public void setAid(Long aid) {
        this.aid = aid;
    }

    public String getAdName() {
        return adName;
    }

    public void setAdName(String adName) {
        this.adName = adName;
    }

    public String getAdPhone() {
        return adPhone;
    }

    public void setAdPhone(String adPhone) {
        this.adPhone = adPhone;
    }

    public String getAdAccount() {
        return adAccount;
    }

    public void setAdAccount(String adAccount) {
        this.adAccount = adAccount;
    }

    public String getAdPassword() {
        return adPassword;
    }

    public void setAdPassword(String adPassword) {
        this.adPassword = adPassword;
    }

    public Date getAdCreatedate() {
        return adCreatedate;
    }

    public void setAdCreatedate(Date adCreatedate) {
        this.adCreatedate = adCreatedate;
    }

    @Override
    public String toString (){
        final StringBuilder sb = new StringBuilder("Admin{");
        sb.append("aid=").append(aid);
        sb.append(", adName='").append(adName).append('\'');
        sb.append(", adPhone='").append(adPhone).append('\'');
        sb.append(", adAccount='").append(adAccount).append('\'');
        sb.append(", adPassword='").append(adPassword).append('\'');
        sb.append(", adCreatedate=").append(adCreatedate);
        sb.append('}');
        return sb.toString();
    }
}